// audioService.js  
class AudioService {
    constructor(src) {
        this.audio = new Audio(src);
        this.audio.load(); // 加载音频文件  
    }

    play() {
        this.audio.play();
    }
}

export default AudioService;